/* utils */
import { createNamespace } from '@src/util'
import { CreateElement } from 'vue'

const [createComponent, bem] = createNamespace('test-demo')

export type TextDemoProps = {
  text: string
}

function TextDemo(h: CreateElement, props: TextDemoProps) {  
  return (
    <div>
      { props.text }
    </div>
  )
}

TextDemo.props = {
  text: String,
}

export default createComponent<TextDemoProps>(TextDemo)